<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <ul>
        <li v-for="v in user" :key="v">value: {{ v }}</li>
      </ul>
      <hr />
      <ul>
        <li v-for="(v, k) in user" :key="k">value: {{ v }}, key: {{ k }}</li>
      </ul>
      <hr />
      <ul>
        <li v-for="(v, k, i) in user" :key="i">value: {{ v }}, key: {{ k }}, index: {{ i }}</li>
      </ul>
    </div>

    <script src="../vue-2.4.4.js"></script>
    <script>
      new Vue({
        el: '#app',
        data: {
          user: {
            id: 1,
            name: 'zs',
            age: 18,
          },
        },
      });
    </script>
  </body>
</html>
